package com.example.response;

import org.json.JSONException;
import org.json.JSONObject;

import com.example.network.Response;
import com.example.resource.InvestorDetail;

/**
 * 请求投资人详情的返回
 * 
 * @author TangChao
 */
public class RequestInvestorDetailResponse extends Response {

	public InvestorDetail investorDetail;

	@Override
	protected void jsonToObject() {
		investorDetail = new InvestorDetail();
		try {
			JSONObject jsonObject = reposonJson.getJSONObject("result");
			JSONObject jsonObject2 = jsonObject.getJSONObject("dataMap");
			JSONObject jsonObject3 = jsonObject2.getJSONObject("info");
			investorDetail.userName = jsonObject3.optString("userName");
			investorDetail.realName = jsonObject3.optString("realName");
			investorDetail.mobile = jsonObject3.optString("mobile");
			investorDetail.bankCardNo = jsonObject3.optString("bankCardNo");
			investorDetail.realNameAuthentication = jsonObject3.optString("realNameAuthentication");
		} catch (JSONException e) {
			e.printStackTrace();
		}
	}

}
